package com.zhang.springbootdemo.service.impl;

import com.zhang.springbootdemo.mapper.TeacherMapper;
import com.zhang.springbootdemo.pojo.Teacher;
import com.zhang.springbootdemo.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public List<Teacher> teacherList() {
        return teacherMapper.teacherList();
    }
}
